package Num20_20200316;

public class Num20_202002316_hxj {
    public static void main (String [] args) {
        double sum=2;
        double p=2,q=1,temp;
        for(int i=1;i<20;i++) {
            temp=p;
            p=p+q;
            q=temp;
            sum+=p/q;
            System.out.println(sum);
        }
        System.out.println(String.format("%.2f", sum));
    }
}
